/*
 * Copyright (c) 2018-2999 湖南洛云网络科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.im.security;

import com.yami.shop.dao.UserMapper;
import com.yami.shop.security.api.model.YamiUser;
import com.yami.shop.security.comment.dao.AppConnectMapper;
import com.yami.shop.security.comment.exception.YamiAuthFilterException;
import com.yami.shop.security.comment.service.AppConnectService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Primary;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.stereotype.Service;

/**
 * 用户详细信息
 *
 * @author lgh
 */
@Slf4j
@Primary
@Service
@AllArgsConstructor
public class YamiUserServiceImpl implements UserDetailsService {

    private final UserMapper userMapper;

    private final AppConnectMapper appConnectMapper;

    private final AppConnectService appConnectService;

    @Override
    public YamiUser loadUserByUsername(String principal) {
        // 未实现该登陆方法
        throw new YamiAuthFilterException("yami.user.unable.login.type");
    }

}
